﻿using Practice.PH4_2104A.Shopping.SevenLayerFramework.Domin;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Practice.PH4_2104A.IRepository
{
    /// <summary>
    /// 订单主表仓储接口
    /// </summary>
    public interface IOrderMasterRepository
    {
        void Insert(OrderMasterModel model);
        void Update(OrderMasterModel model);
        void Delete(OrderMasterModel model);
        IQueryable<OrderMasterModel> GetAll();
    }

    /// <summary>
    /// 订单明细表仓储接口
    /// </summary>
    public interface IOrderDetailRepository
    {
        void Insert(OrderDetailModel model);
        void Insert(List<OrderDetailModel> model);
        void Update(OrderDetailModel model);
        void Delete(OrderDetailModel model);
        IQueryable<OrderDetailModel> GetAll();
    }
}
